﻿<?xml version="1.0" encoding="utf-8" ?>

<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" assembly ="monitor_2_DBwork" namespace ="monitor_2_DBwork" >
  <class name="Access" table="Access" >
    <id name ="Id" column ="Id" type ="int" generator="identity"/>
    <property name="En" column="en" type="string(45)" unique="true" not-null="true"/>
    <property name="Name" column="ru" type="string(45)" unique="true" not-null="true"/>

    <set name="UsersList" inverse="true" cascade="save-update" lazy="false">
      <key column="Idaccess" not-null="true"/>
      <one-to-many class="Users"/>
    </set>
  </class>
</hibernate-mapping>
